Repository navigation
fix(settings): translate the five Access policy field helps in every locale - #35360
Conversation
…locale The settings.access_policy keys allowed_ip_ranges, session_idle_timeout_minutes, session_absolute_max_hours, max_concurrent_sessions_per_user and mfa_required had no help copy in the ten translated locales, so the console fell back to the English manifest description. Each locale now carries the five helps, and the coverage test's shrink-only HELP_OWED list is empty. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY
…cess-policy-helps
📓 Docs Drift CheckNothing in this diff resolved to a documentable surface (no symbol, route or SDK anchor derived from 1 changed package(s)), so this run has no opinion about the docs. What this run could not see
Coarse fallback — 10 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): |
|
repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY Final head for L1:
|
|
repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4 维护者速读
席位核对 — ACCEPT (L1-a) · repo:objectstack#5 · head
|
|
repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY Landing · area ux-1 · 2026-11-19T06:35Z
ACCEPT 7001757297 (L1-a) at head |
Requested by Bill · project thread
Fixes #34121
Clause-②: no
Metadata-protocol: none
维护者速读
HELP_OWED名单清空。packages/services/service-settings/src/translations/zh-CN.ts(access_policy.keys下 5 条help,核对语义是否与英文一致);settings-translation-coverage.test.ts(HELP_OWED清空、只减不增的检查仍在);任一其他语种文件抽查。pnpm --filter @objectstack/service-settings exec vitest run --maxWorkers=2 src/translations/settings-translation-coverage.test.ts,预期 150 条全过;或切到中文界面打开 系统设置 → 访问策略,5 个字段下方应为中文说明。What changes
packages/services/service-settings/src/translations/{zh-CN,zh-Hant,ja-JP,ko,de,es-ES,fr,pt-BR,ru,ar}.ts: each locale'ssettings.access_policy.keysgains ahelpforallowed_ip_ranges,session_idle_timeout_minutes,session_absolute_max_hours,max_concurrent_sessions_per_userandmfa_required, written from the English manifest description of each key and using the terms the locale already uses on this page and on theauthtwins (deployment, organization, member, session, grace period). Themfa_requiredhelp names the locale's own Off option label. zh-Hant is hand-written in this package (no generator owns these files), so it was written directly, in Traditional terms (工作階段, 登入, 驗證).settings-translation-coverage.test.ts:HELP_OWEDis now{}. The shrink-only pin ("every owed help entry is a described field that some locale still leaves untranslated") stays in place, so any future entry is held to the same rule..changeset/34121-access-policy-field-helps.md:@objectstack/service-settingspatch (the locale files ship indist).No keys, labels, option values or runtime code change;
en.tsis untouched (the English help is the manifest description, as for every other described field).Tests
pnpm --filter @objectstack/service-settings testat head3f97eb6433: Test Files 76 passed (76), Tests 1516 passed (1516);typecheckclean (lock VERDICT command-exit 0).node scripts/ablation-replace.mjsrenamed the zh-CNmfa_requiredhelpkey (anchor 1 to 0, blobcd502448eda1tod91b126ff083); the coverage file went red with exactly one failure,zh-CN missing for access_policy: key:mfa_required.help(1 failed, 149 passed); restore verified by blob equal to HEAD andgit diff HEADempty. The test imports the locale files from source (./index.js), so no build sits between the mutation and the run.Acceptance notes
access_policylabels (outside this card's keys'help) still use half-width parentheses, for example闲置超时(分钟); the full-width punctuation pin covers onlysettings.auth. Noted, not filed.Verification
Derived gate families (dispatch-gates, 64 commands)
Run on
0a8ebf8084(the fix commit, before the one merge oforigin/main): 63 exit 0;pnpm check:dual-build-cjs-loadsexit 3, PREREQUISITE NOT MET (reads every package'sdist, and this worktree built only the service-settings closure), so NOT MEASURED locally; CI runs it.dispatch-gates --ranreconciliation: 64 derived, 63 run, 1 NOT-MEASURED, 0 UNRUN.After merging origin/main (`16d3abc41d`) into the branch
The merge touched no service-settings file;
packages/specmoved (validation-message), so spec was rebuilt and the service-settings suite re-run on3f97eb6433(results above).overlap-check: merges cleanly withorigin/mainand with #34223, VERDICT clean.The wide app-shell run and the full CI farm are left to CI.
Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY